﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SAD
{
    public partial class VentanaEmergencia : Form
    {
        VentanaUbicacion ubicaEmerg;
        public VentanaEmergencia()
        {
            InitializeComponent();
            
        }

        private void Emergencia_Load(object sender, EventArgs e)
        {
            this.Location = new Point(200,25);
            comboPriorEmerg.Items.Add("1");
            comboPriorEmerg.Items.Add("2");
            comboPriorEmerg.Items.Add("3");
            comboPriorEmerg.Items.Add("4");
            comboPriorEmerg.Items.Add("5");

            comboTipoEmerg.Items.Add("Maremoto");
            comboTipoEmerg.Items.Add("Terremoto");
            comboTipoEmerg.Items.Add("Tsunami");
            comboTipoEmerg.Items.Add("Huayco");

        }

        private void button2_Click(object sender, EventArgs e)
        {
            ubicaEmerg = new VentanaUbicacion();
            ubicaEmerg.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (ubicaEmerg == null)
                MessageBox.Show("asno ingresa la ubicacion", "asno");
        }

    }
}
